package com.example.demo.util;

import com.example.demo.pojo.Student;
import com.example.demo.pojo.User;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.List;

public class EasyexcelApplication {
    public static void main(String[] args) {
        try (FileInputStream inputStream = new FileInputStream("D:\\桌面\\期末作业\\student.xlsx")) {
            List<User> users = ExcelUtil.readExcel(new BufferedInputStream(inputStream), Student.class);
            for(User test:users){

            }
            System.out.println(users+"打印成功");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
